package STUDENT.TRANNGUYENQUAN.OOPs.OBJECT_AND_CLASSES.Bai2;

public class CalculatorControllers {
	private Models m_objModel;

	public double CalculatorInfo(Numbers num, int iOpt) {
		m_objModel = new Models();
		double result = 0;
		switch (iOpt) {
		case 0:
			result = m_objModel.Add(num);
			break;
		case 1:
			result = m_objModel.Sub(num);
			break;
		case 2:
			result = m_objModel.Mul(num);
			break;
		case 3:
			result = m_objModel.Div(num);
			break;
		default:
			break;
		}
	return result;
	}
}
